package com.lms.thread.demo4;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-01-19 10:16
 * @Description: ${Description}
 */
public class Test {
    public static void main(String[] args) throws InterruptedException {
        VolatileTest volatileTest = new VolatileTest();
        new Thread(volatileTest).start();

        Thread.sleep(2000);
        volatileTest.setStr("222");

    }
}
